package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wtwd.device.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2024-05-31
 */
@ApiModel(value="DeviceSleepRecordInfo对象", description="")
public class DeviceSleepRecordInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "睡眠数据详情表主键id")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "睡眠记录表主键id")
    private Long deviceSleepRecordId;

    @ApiModelProperty(value = "开始时间 yyyyMMddHHmmss")
    private String startTime;

    @ApiModelProperty(value = "结束时间  yyyyMMddHHmmss")
    private String endTime;

    @ApiModelProperty(value = "4 浅睡,5 深睡,7 清醒、8  REM")
    private Integer type;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceSleepRecordId() {
        return deviceSleepRecordId;
    }

    public void setDeviceSleepRecordId(Long deviceSleepRecordId) {
        this.deviceSleepRecordId = deviceSleepRecordId;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "DeviceSleepRecordInfo{" +
        "id=" + id +
        ", deviceSleepRecordId=" + deviceSleepRecordId +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", type=" + type +
        "}";
    }
}
